<template>
  <div class="index" id="index">
    <Header></Header>
    <div class="bigBox">
      <div class="smBox">
        <LeftTop></LeftTop>
       <LeftCenter></LeftCenter>
        <LeftBottom></LeftBottom>
      </div>
      <div class="centerBox">
        <div class="top">
          <h3>全国建档数据统计：</h3>
          <div style="display:flex;">
            <div class="numBox">
              <p class="num">2</p>
              <p class="num">2</p>
              <p class="num">2</p>
              <p class="num">7</p>
              <p class="num">2</p>
              <p class="num">2</p>
              <p class="num">2</p>
            </div>
            <p class="textPep">人</p>
          </div>
        </div>
        <Map></Map>
        <CenterBottm></CenterBottm>
      </div>
      <div class="right">
        <RightTop></RightTop>
        <RightCenter></RightCenter>
        <RightBottom></RightBottom>
      </div> 
    </div>
  </div>
</template>

<script>
import Header from "./Header";
import LeftTop from "./leftTop";
import LeftCenter from "./leftCenter";
import LeftBottom from "./leftBottom";
import Map from "./map";
import CenterBottm from "./centerBottm";
import RightTop from "./rightTop";
import RightCenter from "./rightCenter";
import RightBottom from "./rightBottom";
export default {
  name: "HelloWorld",
  components: {
    Header,
    LeftTop,
    LeftCenter,
    LeftBottom,
    Map,
    CenterBottm,
    RightTop,
    RightCenter,
    RightBottom
  },
  data() {
    return {};
  },
  mounted() {
    this.resize()
  },
  methods: {
    resize() {
      var ratioX = document.documentElement.clientWidth / 1920;
      var ratioY = document.documentElement.clientHeight / 1080;
      document.getElementById("index").style.transform =
        "scale(" + ratioX + "," + ratioY + ")";
      document.getElementById("index").style.transformOrigin = "left top";
      document.getElementById("index").style.backgroundSize = "100% 100%";
    }
  }
};
</script>

<style scoped>
.index {
  width: 1920px;
  height: 1080px;
  background: url("../assets/bj.png") no-repeat;
}
.bigBox {
  box-sizing: border-box;
  width: 1920px;
  display: flex;
  padding: 0 20px;
}
.smBox {
  width: 540px;
  display: flex;
  flex-direction: column;
}
.centerBox {
  width: 750px;
  display: flex;
  flex-direction: column;
  margin-left: 30px;
}
.top {
  width: 710px;
  height: 100px;
  color: #ffffff;
  padding-left: 40px;
}
h3{
  padding: 0;
  margin: 0;
  margin-top: 10px;
}
.numBox {
  margin-top: 20px;
  display: flex;
}
.num {
  width: 30px;
  height: 43px;
  background: linear-gradient(to bottom, #38629e, #133f87);
  font-size: 24px;
  text-align: center;
  line-height: 43px;
  margin-right: 10px;
  font-weight: 600;
}
.textPep{
  font-size: 12px;
  padding-top: 38px;
}
.right{
  width: 540px;
  display: flex;
  flex-direction: column;
  margin-left: 30px;
  margin-top: -40px;
}
</style>
